home *** CD-ROM | disk | FTP | other *** search
- Path: service.britgas.co.uk!usenet
- From: andy.crutchlow@service.britgas.co.uk (Andy Crutchlow)
- Newsgroups: comp.lang.c
- Subject: Help: floating point/use of floor
- Date: 19 Jan 1996 16:28:34 GMT
- Organization: Your Organization
- Message-ID: <4dogri$fta@gate.service.britgas.co.uk>
- NNTP-Posting-Host: 93.224.235.131
- X-Newsreader: WinVN 0.92.6+
-
- Can anyone help.
-
- Make the following display 75.99
- main()
- {
- int i;
- float f;
- i = 7599;
- f = i / 100.00;
- printf("%f\n",f);
- }
-
- I believe the correct answer involves using function floor but I can't
- remember how.
-
- Thanks.
- e-mail:- andy.crutchlow@service.britgas.co.uk
-